/** 
 * @用户配置全局变量
 * @author xxz 
 * @version 1.0.0  
 */
if(typeof(QualityCheck) === "undefined"){
	QualityCheck = {GPUD:{}};
}else{
	if(typeof(QualityCheck.GPUD) === "undefined") QualityCheck.GPUD = {};
}
var timer = null;
var Host ="http://" + window.location.host + "/smartschoolservice";
var HostConsume ="http://" + window.location.host + "/consumeservice";
var ServiceName = "smartschoolservice";
QualityCheck.GPUD.ServiceConfig ={
	ServerLoginUrl:Host + "/service.do",
	TerminalLossServerLoginUrl:HostConsume + "/service/Terminal/query.do", 
	ConsumeDetilServerLoginUrl:HostConsume + "/service/ConsumeDetil/query.do",  
	SaveDetilServerLoginUrl:HostConsume + "/service/SaveDetil/query.do",
	ExportUrl:Host + "/service/export/query.do",
};

var userType="";
var TeacherCodeGloab = "";
var PageUrl={
	aschoolManageUrl:"static/models/aschoolmanage/aschoolmanage.html",
	addStudentUrl:"student/addstudent/studentform.html",
	studentUrl:"student/student/student.html",
	addTeacherUrl:"teacher/addteacher/teacherform.html",
	teacherUrl:"teacher/teacher/teacher.html",
	addRuleUrl:"rule/addrule/ruleform.html",
	ruleUrl:"rule/rule/rule.html",
	classUrl:"class/class/class.html",
	addClassUrl:"class/addclass/classform.html",
	gradeAttenceUrl:"attence/gradeattence/gradeattence.html",
	classAttenceUrl:"attence/classattence/classattence.html",
	inoutUrl:"attence/inoutschool/inoutschool.html",
	teachercourseUrl:"course/teachercourse/teachercourse.html",
	courseUrl:"course/course/course.html",
	regonUrl:"regon/regon/regon.html",
	addRegonUrl:"regon/addregon/regonform.html",
	examUrl:"exam/schoolexam/schoolexam.html",
	addExamUrl:"exam/addexam/examform.html",
	resultUrl:"exam/exam/result.html",
	addResultUrl:"exam/exam/resultform.html",
	subjectUrl:"subject/subject/subject.html",
	addSubjectUrl:"subject/addsubject/subjectform.html",
	schoolUrl:"school/school/school.html",
	
	apositionIndexUrl:"static/models/aposition/positionindex.html",
	sosUrl:"sos/sos.html",
	historyUrl:"history/history.html",
	positionUrl:"position/position.html",
	
	userManageUrl:"static/models/usermanage/usermanage.html",
	userUrl:"user/user/user.html",
	addUserUrl:"user/adduser/userform.html",
	anewsManageUrl:"static/models/anewsmange/anewsmange.html",
	anewsUrl:"anews/anews/anews.html",
	addAnewsUrl:"anews/addanews/addanews.html",
	addNoticeUrl:"anews/addanews/addnotice.html",
	aterminalManageUrl:"static/models/aterminalmanage/aterminalmanage.html",
	aterminalUrl:"aterminal/aterminal/aterminal.html",
	
	pterminalManageUrl:"static/models/pterminalmanage/pterminalmanage.html",
	pterminalUrl:"pterminal/pterminal/pterminal.html",
	
	tschoolManageUrl:"static/models/tschoolmanage/tschoolmanage.html",
	trowofclassUrl:"rowofclass/rowofclass.html",
	tcourselistUrl:"course/course.html",
	tattenceUrl:"attendance/attendance/attendance.html",
	tinoutSchoolUrl:"attendance/inoutschool/inoutschool.html",
	tleaveUrl:"tleave/tleave.html",
	studentMaillistUrl:"tmaillist/studentmaillist.html",
	teacherMaillistUrl:"tmaillist/teachermaillist.html",
	tnewsManageUrl:"static/models/tnewsmange/tnewsmange.html",
	tnewsUrl:"tnews/tnews/tnews.html",
	addTnewsUrl:"tnews/addtnews/addtnews.html",
	addTeamesUrl:"tnews/addtnews/addteames.html",
	tpositionManageUrl:"static/models/tposition/positionindex.html",
	tpositionUrl:"tposition/tposition.html",
	tsosUrl:"tsos/tsos.html",
	tattRuleUrl:"attrule/attrulemange/attrulemanage.html",
	addStudentNewsUrl:"tnews/addtnews/sendnotification.html",
	tclassExamUrl:"exam/test/test.html",
	taddClassExamUrl:"exam/addtest/testform.html",
	
	pnewsManageUrl:"static/models/pnewsmange/pnewsmange.html",
	pnewsUrl:"pnews/pnews/pnews.html",
	addPnewsUrl:"pnews/addpnews/addpnews.html",
	pconsumeManageUrl:"static/models/pconsumemange/pconsumemange.html",
	pconsumeUrl:"pconsume/pconsume/pconsume.html",
	ppayUrl:"pconsume/ppay/ppay.html",
	
	pexamUrl:"exam/pexam/pexam.html",
	ptestUrl:"exam/ptest/ptest.html",
	pschoolManageUrl:"static/models/pschoolmanage/pschoolmanage.html",
	pcourselistUrl:"course/course.html",
	pattenceUrl:"attendance/attendance/attendance.html",
	pinoutSchoolUrl:"attendance/inoutschool/inoutschool.html",
	pleaveUrl:"pleave/pleave/pleave.html",
	askForLeaveUrl:"pleave/askforleave/askforleave.html",
	teacherMaillistUrl:"tmaillist/teachermaillist.html",
	studentinfoUrl:"student/student.html",
	
	ppositionIndexUrl:"static/models/pposition/positionindex.html",
	ppositionUrl:"pposition/pposition.html",
	fenceUrl:"fence/fence.html",
	phistoryUrl:"phistory/phistory.html",
	psosUrl:"psos/psos.html",
	
	callerUrl:"caller/caller.html",
	parentnumUrl:"parentnum/parentnum.html",
	ringUrl:"ring/ring.html",
	sosUrl:"sos/sos.html",
	sosnumUrl:"sosnum/sosnum.html",
	unworkUrl:"unwork/unwork.html",
	whitenumUrl:"whitenum/whitenum.html",
	workUrl:"work/work.html",
	messageUrl:"leavemessage/addpnews.html",
	
	maintainSchoolUrl:"static/models/maintainmanage/schoolindex.html",
	mainschoolUrl:"school/school.html",
	maintainUrl:"static/models/maintainmanage/maintainindex.html",
	mainlUrl:"maintain/maintain.html",
	mainUserManagerUrl:"static/models/maintainmanage/usermanage.html",
	mainUserUrl:"user/user/user.html",
	mainAddUserUrl:"user/adduser/userform.html",
	
	roleUrl:"role/role/role.html",
	addRoleUrl:"role/addrole/roleform.html",
	powerUrl:"power/power.html",
};
var TipsMsg = {
		datapower: "请在权限管理模块给数据授权！",
};

if(typeof _ !== "undefined"){
    _.templateSettings = {
        interpolate: /\<\@\=(.+?)\@\>/gim,
        evaluate: /\<\@([\s\S]+?)\@\>/gim,
        escape: /\<\@\-(.+?)\@\>/gim
    };
}

